Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

Use local OKP embeddings from rag-content#116

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-lightspeed:lcore-migrationfrom
umago:okp-embedding-model
Jun 23, 2026
Merged

Use local OKP embeddings from rag-content#116
openshift-merge-bot[bot] merged 1 commit into
openstack-lightspeed:lcore-migrationfrom
umago:okp-embedding-model

Conversation

@umago

@umago umago commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

The rag-content image now ships the OKP embedding model in it and we no longer need for OGX to download it at runtime via HF.

Summary by CodeRabbit

  • New Features

    • Enhanced OKP embedding model integration with improved collection and configuration capabilities.
  • Chores

    • Updated default container image to 2026.1 version.
    • Simplified OKP environment variable configuration.

@openshift-ci openshift-ci Bot requested review from Akrog and lpiwowar June 19, 2026 15:47
@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 67e29411-9a04-46b6-b4e1-8379fd674648

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@internal/controller/assets/vector_database_collect.sh`:
- Line 264: The cp command copying OKP_EMBEDDING_MODEL_SRC to
VECTOR_DB_VOLUME_MOUNT_PATH/okp_embeddings_model creates nested directories on
re-runs when the destination already exists (because cp copies the source into
an existing destination directory). Before the cp command, add a check to remove
the destination directory if it already exists using rm -rf, then perform the cp
operation. This ensures the directory structure remains flat and correct on
retries and upgrades without leaving stale files.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ea6375f7-505d-4a0d-b223-455f7c674112

📥 Commits

Reviewing files that changed from the base of the PR and between 48b5142 and 6c6d99f.

📒 Files selected for processing (9)
  • api/v1beta1/openstacklightspeed_types.go
  • bundle/manifests/openstack-lightspeed-operator.clusterserviceversion.yaml
  • config/manager/manager.yaml
  • config/manifests/bases/openstack-lightspeed-operator.clusterserviceversion.yaml
  • hack/env.sh
  • internal/controller/assets/vector_database_collect.sh
  • internal/controller/constants.go
  • internal/controller/lcore_deployment.go
  • internal/controller/llama_stack_config.go
💤 Files with no reviewable changes (1)
  • internal/controller/lcore_deployment.go

Comment thread internal/controller/assets/vector_database_collect.sh Outdated
@umago umago force-pushed the okp-embedding-model branch 2 times, most recently from 7b4e475 to d9a05b1 Compare June 20, 2026 07:55
@umago

umago commented Jun 21, 2026

Copy link
Copy Markdown
Contributor Author

/test openstack-lightspeed-kuttl-4-18

@umago umago force-pushed the okp-embedding-model branch from d9a05b1 to d9686fb Compare June 21, 2026 20:19
Comment thread internal/controller/assets/vector_database_collect.sh
Comment thread internal/controller/assets/vector_database_collect.sh Outdated
Comment thread internal/controller/lcore_deployment.go
@umago umago force-pushed the okp-embedding-model branch 2 times, most recently from 2f81a86 to 2aa7dbe Compare June 22, 2026 09:18
Comment thread internal/controller/assets/vector_database_collect.sh
Comment thread internal/controller/assets/vector_database_collect.sh Outdated
@umago umago force-pushed the okp-embedding-model branch from 2aa7dbe to 5f0acd8 Compare June 22, 2026 10:09
lpiwowar
lpiwowar previously approved these changes Jun 23, 2026

@lpiwowar lpiwowar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you! 👍

Just one super small nit I think it would be nice to address.


I'm leaving final /lgtm to @Akrog since he had some requests.

Comment thread api/v1beta1/openstacklightspeed_types.go
The rag-content image now ships the OKP embedding model in it and we no
longer need for OGX to download it at runtime via HF.

Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
@umago umago force-pushed the okp-embedding-model branch from 03d5acb to 6e607da Compare June 23, 2026 09:14

@Akrog Akrog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci

openshift-ci Bot commented Jun 23, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Akrog, umago

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot Bot merged commit 51ad0a6 into openstack-lightspeed:lcore-migration Jun 23, 2026
7 checks passed
@umago umago deleted the okp-embedding-model branch June 23, 2026 12:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants